import request from '@/utils/request'

export default{

    getSellerList() { // 获取卖家列表数据
        return request({
            url:`/ucenterservice/apimember/getAllucenter`,
            method: 'get',

        })
    },

    getAllUsrPage(page,limit,searchObj){
      return request({
        url:`/ucenterservice/apimember/getAllucenterPage/${page}/${limit}`,
        method:`get`,
        params:searchObj

      })

    },


    addUser(member){
      return request({
        url:`/ucenterservice/apimember/addUser`,
        method:`post`,
        data:member
      })
    },

     getUserInfo(id){
      return request({
        url:`/ucenterservice/apimember/getSellerInfo/${id}`,
        method:`post`,

      })
    },

    updateUserInfo(member){
      return request({
        url:`/ucenterservice/apimember/updateUserInfo`,
        method:`put`,
        data:member

      })
    },

  deleteUser(id){
    return request({
      url:`/ucenterservice/apimember/deleteUserById/${id}`,
      method:`delete`,

    })

  },


  deleteBrach(idList){
    return request({
      url:`/ucenterservice/apimember/deleteUserBrach`,
      method:`delete`,
      data:idList

    })


  },

  forbiden(userId,isDisabled){
    return request({
      url:`/ucenterservice/apimember/forbiden`,
      method:`put`,
      params:{userId:userId,isDisabled:isDisabled}

    })

  },


  getCount() {
    return request({
      url: `/ucenterservice/apimember/getCountOfUser`,
      method: 'get'


    })
  },











}
